<?php
	class HomesController extends AppController{
		var $name='Homes';
		function index(){
			$this->layout = 'trangchu';
		}
		function thu(){
			$this->layout = 'trangchu';
			//$data = $this->Post->find('all', array('conditions' => array('Post.vip' => 1)));
			//$data=$this->requestAction($this->Post->find('all', array('conditions' => array('Post.vip' => 1))));
			//$data= $this->requestAction(array("controller"=>"posts","action"=>"tinvip"))
			//$this->set("data", $data);
			//$this->loadModel('Catalog');
			$data = $this->Catalog->find("all");
			$this->set("data", $data);
		}
		function trogiup(){
			$this->layout = 'trangchu';
		}
		function gioithieu(){
			$this->layout = 'trangchu';
		}
		function lienhe(){
			$this->layout = 'trangchu';
		}
	}
?>